# -*- coding:utf-8 -*-
# Author:Ami

class Dog(object):
    n = 333
    name = "adc"
    def __init__(self, name):
        self.name = name

    # @staticmethod #实际上跟类没什么关系了,访问不了类和实例的实例属性
    @classmethod #类方法只能访问类变量，不能访问实例变量
    def eat(self, food):
        print("%s is eating %s" % (self.name, food))


d = Dog("Ami")
d.eat( "饺子")
